import axios from '../utils/request';



//商品类别渲染
export const entry = () => axios({
    url: '/v2/index_entry'
})


//商品列表渲染 
export const shopping = params => axios({
    url: '/shopping/restaurants',
    params
})

export const login = data => axios({
    url: '/v2/login',
    method: 'POST',
    data
})

//16、获取食品列表 /shopping/v2/menu

export const foodList = params => {
    return axios({
        url: '/shopping/v2/menu',
        params
    })
}


//获取评价分数
export const ratings = id => axios({
    url: '/ugc/v2/restaurants/' + id + '/ratings/scores',

})

//商铺评价分类 
export const tags = id => axios({
    url: '/ugc/v2/restaurants/' + id + '/ratings/tags'
})

//商铺评价
export const remakes = params => axios({
    url: '/ugc/v2/restaurants/' + params.restaurant_id + '/ratings'
})


